<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue基础模板</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div id="app">
        <form action="">
            <input type="text" name="usename" v-model.number.lazy="textValue">
            <input type="checkbox" name="usename" v-model="check">是否同意
            <br>
            <input type="radio" name="usename" v-model="fool" value="汉堡">汉堡
            <input type="radio" name="usename" v-model="fool" value="热狗">热狗
            <select name="name" v-model="cityArr" multiple>
                <option value="上海">上海</option>
                <option value="北京">北京</option>
                <option value="杭州">杭州</option>
                <option value="深圳">深圳</option>
            </select>
            <select name="name" v-model="city">
                <option value="上海">上海</option>
                <option value="北京">北京</option>
                <option value="杭州">杭州</option>
                <option value="深圳">深圳</option>
            </select>
            <textarea v-model="textarea"></textarea>
        </form>

    </div>

    <script>
        Vue.config.productionTip = false;
        const vm = new Vue({
            el: "#app",
            data() {
                return {
                    textValue: 'hello world',
                    check:true,
                    fool:'',
                    cityArr:[],
                    city:'',
                    textarea:''
                }
            }
        })
    </script>
</body>

</html>